package explorer;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class Icons extends IconLoader{

	private BufferedImage image1;

	public Icons() {
		super("text");
	}
	
		

	@Override
	public BufferedImage getIcon(String iconType) {
		
		if (iconType=="text") {
			try {
				image1=ImageIO.read(new File("images1/text.png"));
			} catch (IOException e) {
				e.printStackTrace();
			}
		}else if (iconType=="image") {
			try {
				image1=ImageIO.read(new File("images1/Photos01.png"));
			} catch (IOException e) {
				e.printStackTrace();
			}
		}else if(iconType=="null"){
			try {
				image1=ImageIO.read(new File("images1/File.png"));
			} catch (IOException e) {
				e.printStackTrace();
			}
		}else if (iconType=="music") {
			try {
				image1=ImageIO.read(new File("images1/Music.png"));
			} catch (IOException e) {
				e.printStackTrace();
			}
		}else if (iconType=="folder") {
			try {
				image1=ImageIO.read(new File("images1/folder.png"));
			} catch (IOException e) {
				e.printStackTrace();
			}
		}else if (iconType=="undo"){
			try {
				image1=ImageIO.read(new File("images1/folderback.png"));
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		
		
		return image1;
	}
	
}
	